package net.oschina.app.ui;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;

import net.oschina.app.R;

/**
 * Created by huang on 2017-4-1.
 * 找人页面
 */

public class FindPeopleActivity extends AppCompatActivity {
    private Toolbar mToolbar;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
        initData();
        initEvent();

    }

    @NonNull
    private void initView() {
        setContentView(R.layout.activity_find_people);
        mToolbar = (Toolbar) findViewById(R.id.tb_find_people);
        setSupportActionBar(mToolbar);
        mToolbar.setNavigationIcon(R.drawable.actionbar_back_icon_normal);
    }

    //初始化数据
    private void initData() {

    }

    //初始化事件
    private void initEvent() {
        //监听toolBar导航图标(返回图标)
        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //销毁本activity
                finish();
            }
        });

    }
}
